package org.example.buysystem.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.buysystem.entity.Cart;
import org.example.buysystem.mapper.CartMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CartService extends ServiceImpl<CartMapper, Cart> {

    @Resource

    private CartMapper cartMapper;
    public List<Map<String,Object>> getCartByUserId(Long userId) {
        return cartMapper.getCartByUserId(userId);
    }
}
